feat(tokenselector): 4 - implement recent tokens feature #6521
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Adds persistent “Recent” tokens and inline favorites per the token-selector rollout plan. This slice introduces the localStorage-backed recent-token storage/hook, wires the selection context with a reusable
TokenSelectionHandler+onTokenListItemClick, and refactorsTokensContent/TokensVirtualListso favorites and recents render ahead of “All tokens” with a Clear CTA. The widget now records recent selections for both standard and bridging flows (fallback to wallet chain when the target chain isn’t set).To Test
Standard selector
Favorites
Bridging / chain switch
Search + Enter key
Background
Implements Step 4 of the token-selector split plan by persisting recent selections, exposing the shared selection handler, and pinning favorites/recents ahead of the full list so later PRs can build on a richer, stateful selector column.